package com.coin900.coin.base;

import java.util.HashMap;
import java.util.Map;

/**
 * @author shui
 * @create 2018-01-15
 **/
public class CoinConstants {

    // 分页显示
    public static final String COIN_PAGE = "page";
    // 绑定手机验证码
    public static final String COIN_SMS_CODE_MOBILE_BIND = "coin_mobile_bind";
    // 提现验证码
    public static final String COIN_SMS_CODE_WITHDRAW = "coin_mobile_withdraw";

    public static final String COIN_SMS_CODE_ORDER_PAY = "COIN_SMS_CODE_ORDER_PAY";

    // 用于资产估值的币种
    public static final String COIN_VALUATION_TYPE = "btc";
    // 估值标量的币种在 coin_coin 表中的id ，此处为 btc 的 id
    public static final Long COIN_VALUATION_ID = 1L;
    /**
     * 邀请链接中的 userId DES 加密密匙
     */
    public static final String INVITE_SERCET_KEY = "?wxE]wTVmf45bv^Gdjxh>!L6";

    // 币的类型是虚拟币
    public static final int COIN_TYPE_VIRTUAL_COIN = 1;
    // 币的类型是代币
    public static final int COIN_TYPE_TOKEN = 2;

    /**
     * 项目状态，0未发布 1进行中 2即将 3已结束
     */
    public static final int COIN_PROJECT_STATUS_UNPUBLISHED = 0;
    public static final int COIN_PROJECT_STATUS_ING = 1;
    public static final int COIN_PROJECT_STATUS_WAITING = 2;
    public static final int COIN_PROJECT_STATUS_FINISHED = 3;

    public static final Map<Integer, String> COIN_PROJECT_STATUS = new HashMap<Integer, String>() {
        {
            put(COIN_PROJECT_STATUS_UNPUBLISHED, "未发布");
            put(COIN_PROJECT_STATUS_ING, "进行中");
            put(COIN_PROJECT_STATUS_WAITING, "预售");
            put(COIN_PROJECT_STATUS_FINISHED, "已结束");
        }
    };

    /**
     * 审核状态 0未通过 1通过 2审核中
     */
    public static final int COIN_CHECK_STATUS_FAIL = 0;
    public static final int COIN_CHECK_STATUS_SUCCESS = 1;
    public static final int COIN_CHECK_STATUS_ING = 2;
    public static final Map<Integer, String> COIN_CHECK_STATUS = new HashMap<Integer, String>() {
        {
            put(COIN_CHECK_STATUS_FAIL, "审核失败");
            put(COIN_CHECK_STATUS_SUCCESS, "审核成功");
            put(COIN_CHECK_STATUS_ING, "审核中");
        }
    };

    /**
     * 发布状态 0未发布 1已发布
     */
    public static final int COIN_PUBLISH_STATUS_UNPUBLICHED = 0;
    public static final int COIN_PUBLISH_STATUS_PUBLICHED = 1;

    /**
     * 订单状态 0未支付 1已支付 2退款 3取消
     */
    public static final int COIN_ORDER_STATUS_NOT_PAID = 0;
    public static final int COIN_ORDER_STATUS_PAID = 1;
    public static final int COIN_ORDER_STATUS_REFUND = 2;
    public static final int COIN_ORDER_STATUS_CANCEL = 3;
    public static final Map<Integer, String> COIN_ORDER_STATUS = new HashMap<Integer, String>() {
        {
            put(COIN_ORDER_STATUS_NOT_PAID, "未支付");
            put(COIN_ORDER_STATUS_PAID, "已支付");
            put(COIN_ORDER_STATUS_REFUND, "退款");
            put(COIN_ORDER_STATUS_CANCEL, "3取消");
        }
    };

    /**
     * 充值提现的确认状态 0 失败 1 成功 2 确认中 3 未确认
     */
    public static final int COIN_CAPITAL_CONFIRM_FAIL = 0;
    public static final int COIN_CAPITAL_CONFIRM_SUCCESS = 1;
    public static final int COIN_CAPITAL_CONFIRM_WATIONG = 2;
    public static final int COIN_CAPITAL_CONFIRM_WITHOUT = 3;
}
